package com.mc.designpattern.factory.factory3;

/**
 * @author fumengchao
 * @ClassName Test.java
 * @Description TODO
 * @createTime 2021 0729 16:38:00
 */
public class Test {

    public static void main(String[] args) {
        DaoFactory daoFactory=new XmlDaoFactory();
        OrderDetailDAO orderDetailDao = daoFactory.createOrderDetailDao();
        OrderMainDAO orderMainDao = daoFactory.createOrderMainDao();
        orderMainDao.saveOrderMain();
        orderDetailDao.saveOrderDetail();

    }

}